
function Fahrenheit(props){
    const handleChange = (e)=>{
        props.handleFahrenheit(e.target.value)
    }
    return(
        <fieldset>
            <legend>
                Enter temperature in Fahrenheit:
            </legend>
            <input type="number" value={props.fahrenheit} onChange={handleChange}/>
            {props.children}
        </fieldset>
    )
}

export default Fahrenheit;